import http from '@/utils/request'

/**
 * 用户登录
 * @param data
 * @returns {Promise<AxiosResponse<any>>}
 */
export async function login(data) {
  return await http.login("/api/user/login",data)
}

export async function getUserInfo() {
  return await http.get("/api/sysUser/getUserInfo")
}

export async function logout(params) {
  return await http.post("/api/sysUser/logout",params)
}

//获取菜单数据
export async function getMenuList() {
  return await http.get("/api/sysUser/getMenuList")
}
